package edu.sctu.wulixia.month6.day20150603;

import java.util.HashMap;

/**
 * Created by user05 on 2015/6/3.
 */
public class Student {
    String name;
    String sex;
    public Student(String n, String s) {
        name=n;
        sex=s;
    }
    public String toString(){
        return ("姓名:"+name+"\n"+"性别:"+sex+"\n");
    }
    public static void main(String [] args){

        HashMap<Integer, Student> hm=new HashMap<Integer,Student>();
        hm.put(1,new Student("张三","男"));
        hm.put(0,new Student("张","男"));

        //存是值根据学生编号存的学生信息
        for (int i = 0; i <hm.size() ; i++) {
            System.out.println((Student)hm.get(i));
            HashMap<Integer,Student> map = new HashMap<>();
            for (int j = 0; j < map.size(); j++) {

            }
        }
    }
}

